local function objectHide()
	local o = {}
	local tSelf = {}
	setmetatable(o, tSelf)
	tSelf.__index = tSelf
	tSelf.__tostring = function(j)
		return j.self
	end
	tSelf.__tocall = function(j)
		return j.cb
	end
	tSelf.self = nil
	tSelf.cb = function(e) end
	return o
end

home = 
{
	create = nil, 
	LvglImg1 = objectHide(),
	LvglLabel1 = objectHide(),
	LvglImg2 = objectHide(),
	LvglLabel2 = objectHide(),
	LvglLabel3 = objectHide(),
	LvglImg3 = objectHide(),
	LvglLabel4 = objectHide(),
	LvglImg4 = objectHide(),
}
first = 
{
	create = nil, 
	LvglSlider1 = objectHide(),
	LvglBar1 = objectHide(),
}

----------------------------------------------------------------------------
--The following is the content of screen: home
---------------------------------------------------------------------------
home.create = function()

	--This is the IMG_PART_MAIN's style of home.LvglImg1
	Style_LvglImg1_1=lvgl.style_t()
	lvgl.style_init(Style_LvglImg1_1)
	lvgl.style_set_bg_color(Style_LvglImg1_1, lvgl.STATE_DEFAULT, lvgl.color_hex(0xC92F10))
	lvgl.style_set_bg_opa(Style_LvglImg1_1, lvgl.STATE_DEFAULT, 1)

	--This is the base code of home.LvglImg1
	home.LvglImg1.self = lvgl.img_create(lvgl.scr_act(), nil)
	lvgl.img_set_src(home.LvglImg1.self, "/lua//res/bg.jpg")
	lvgl.obj_align(home.LvglImg1.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 0, 0)
	lvgl.obj_add_style(home.LvglImg1.self, lvgl.IMG_PART_MAIN, Style_LvglImg1_1)


	--This is the LABEL_PART_MAIN's style of home.LvglLabel1
	Style_LvglLabel1_1=lvgl.style_t()
	lvgl.style_init(Style_LvglLabel1_1)

	--This is the base code of home.LvglLabel1
	home.LvglLabel1.self = lvgl.label_create(lvgl.scr_act(), nil)
	lvgl.obj_set_size(home.LvglLabel1.self, 89, 60)
	lvgl.label_set_text(home.LvglLabel1.self, "中国移动")
	lvgl.label_set_align(home.LvglLabel1.self, lvgl.LABEL_ALIGN_CENTER)
	lvgl.label_set_long_mode(home.LvglLabel1.self, lvgl.LABEL_LONG_EXPAND)
	lvgl.label_set_very_long_texts(home.LvglLabel1.self, false)
	lvgl.label_set_recolor(home.LvglLabel1.self, false)
	lvgl.obj_align(home.LvglLabel1.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 722, -5)
	lvgl.obj_add_style(home.LvglLabel1.self, lvgl.LABEL_PART_MAIN, Style_LvglLabel1_1)


	--This is the IMG_PART_MAIN's style of home.LvglImg2
	Style_LvglImg2_1=lvgl.style_t()
	lvgl.style_init(Style_LvglImg2_1)

	--This is the base code of home.LvglImg2
	home.LvglImg2.self = lvgl.img_create(lvgl.scr_act(), nil)
	lvgl.img_set_src(home.LvglImg2.self, "/lua//res/icon-signal-full.png")
	lvgl.obj_align(home.LvglImg2.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 802, 2)
	lvgl.obj_add_style(home.LvglImg2.self, lvgl.IMG_PART_MAIN, Style_LvglImg2_1)


	--This is the LABEL_PART_MAIN's style of home.LvglLabel2
	Style_LvglLabel2_1=lvgl.style_t()
	lvgl.style_init(Style_LvglLabel2_1)

	--This is the base code of home.LvglLabel2
	home.LvglLabel2.self = lvgl.label_create(lvgl.scr_act(), nil)
	lvgl.obj_set_size(home.LvglLabel2.self, 101, 76)
	lvgl.label_set_text(home.LvglLabel2.self, "22：22")
	lvgl.label_set_align(home.LvglLabel2.self, lvgl.LABEL_ALIGN_CENTER)
	lvgl.label_set_long_mode(home.LvglLabel2.self, lvgl.LABEL_LONG_EXPAND)
	lvgl.label_set_very_long_texts(home.LvglLabel2.self, false)
	lvgl.label_set_recolor(home.LvglLabel2.self, false)
	lvgl.obj_align(home.LvglLabel2.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 48, 82)
	lvgl.obj_add_style(home.LvglLabel2.self, lvgl.LABEL_PART_MAIN, Style_LvglLabel2_1)


	--This is the LABEL_PART_MAIN's style of home.LvglLabel3
	Style_LvglLabel3_1=lvgl.style_t()
	lvgl.style_init(Style_LvglLabel3_1)

	--This is the base code of home.LvglLabel3
	home.LvglLabel3.self = lvgl.label_create(lvgl.scr_act(), nil)
	lvgl.obj_set_size(home.LvglLabel3.self, 112, 60)
	lvgl.label_set_text(home.LvglLabel3.self, "02月22日 星期二")
	lvgl.label_set_align(home.LvglLabel3.self, lvgl.LABEL_ALIGN_CENTER)
	lvgl.label_set_long_mode(home.LvglLabel3.self, lvgl.LABEL_LONG_EXPAND)
	lvgl.label_set_very_long_texts(home.LvglLabel3.self, false)
	lvgl.label_set_recolor(home.LvglLabel3.self, false)
	lvgl.obj_align(home.LvglLabel3.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 66, 154)
	lvgl.obj_add_style(home.LvglLabel3.self, lvgl.LABEL_PART_MAIN, Style_LvglLabel3_1)


	--This is the IMG_PART_MAIN's style of home.LvglImg3
	Style_LvglImg3_1=lvgl.style_t()
	lvgl.style_init(Style_LvglImg3_1)

	--This is the base code of home.LvglImg3
	home.LvglImg3.self = lvgl.img_create(lvgl.scr_act(), nil)
	lvgl.img_set_src(home.LvglImg3.self, "/lua//res/icon-map.png")
	lvgl.obj_align(home.LvglImg3.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 29, 238)
	lvgl.obj_add_style(home.LvglImg3.self, lvgl.IMG_PART_MAIN, Style_LvglImg3_1)


	--This is the LABEL_PART_MAIN's style of home.LvglLabel4
	Style_LvglLabel4_1=lvgl.style_t()
	lvgl.style_init(Style_LvglLabel4_1)

	--This is the base code of home.LvglLabel4
	home.LvglLabel4.self = lvgl.label_create(lvgl.scr_act(), nil)
	lvgl.obj_set_size(home.LvglLabel4.self, 144, 53)
	lvgl.label_set_text(home.LvglLabel4.self, "上海市浦东新区华夏中路")
	lvgl.label_set_align(home.LvglLabel4.self, lvgl.LABEL_ALIGN_CENTER)
	lvgl.label_set_long_mode(home.LvglLabel4.self, lvgl.LABEL_LONG_EXPAND)
	lvgl.label_set_very_long_texts(home.LvglLabel4.self, false)
	lvgl.label_set_recolor(home.LvglLabel4.self, false)
	lvgl.obj_align(home.LvglLabel4.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 106, 230)
	lvgl.obj_add_style(home.LvglLabel4.self, lvgl.LABEL_PART_MAIN, Style_LvglLabel4_1)


	--This is the IMG_PART_MAIN's style of home.LvglImg4
	Style_LvglImg4_1=lvgl.style_t()
	lvgl.style_init(Style_LvglImg4_1)
	lvgl.style_set_bg_color(Style_LvglImg4_1, lvgl.STATE_DEFAULT, lvgl.color_hex(0x00FF00))
	lvgl.style_set_bg_opa(Style_LvglImg4_1, lvgl.STATE_DEFAULT, 0.3)

	--This is the base code of home.LvglImg4
	home.LvglImg4.self = lvgl.img_create(lvgl.scr_act(), nil)
	lvgl.img_set_src(home.LvglImg4.self, "/lua//weather-qing.png")
	lvgl.obj_align(home.LvglImg4.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 588, 105)
	lvgl.obj_add_style(home.LvglImg4.self, lvgl.IMG_PART_MAIN, Style_LvglImg4_1)
end

----------------------------------------------------------------------------
--The following is the content of screen: first
---------------------------------------------------------------------------
first.create = function()

	--This is the SLIDER_PART_BG's style of first.LvglSlider1
	Style_LvglSlider1_1=lvgl.style_t()
	lvgl.style_init(Style_LvglSlider1_1)

	--This is the SLIDER_PART_INDIC's style of first.LvglSlider1
	Style_LvglSlider1_2=lvgl.style_t()
	lvgl.style_init(Style_LvglSlider1_2)

	--This is the SLIDER_PART_KNOB's style of first.LvglSlider1
	Style_LvglSlider1_3=lvgl.style_t()
	lvgl.style_init(Style_LvglSlider1_3)

	--This is the base code of first.LvglSlider1
	first.LvglSlider1.self = lvgl.slider_create(lvgl.scr_act(), nil)
	lvgl.obj_set_size(first.LvglSlider1.self, 643, 33)
	lvgl.slider_set_value(first.LvglSlider1.self, undefined, lvgl.ANIM_undefined)
	lvgl.slider_set_range(first.LvglSlider1.self, 0, 100)
	lvgl.slider_set_knob-only_mode(first.LvglSlider1.self, false)
	lvgl.obj_align(first.LvglSlider1.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 43, 55)
	lvgl.obj_add_style(first.LvglSlider1.self, lvgl.SLIDER_PART_BG, Style_LvglSlider1_1)
	lvgl.obj_add_style(first.LvglSlider1.self, lvgl.SLIDER_PART_INDIC, Style_LvglSlider1_2)
	lvgl.obj_add_style(first.LvglSlider1.self, lvgl.SLIDER_PART_KNOB, Style_LvglSlider1_3)


	--This is the BAR_PART_BG's style of first.LvglBar1
	Style_LvglBar1_1=lvgl.style_t()
	lvgl.style_init(Style_LvglBar1_1)

	--This is the BAR_PART_INDIC's style of first.LvglBar1
	Style_LvglBar1_2=lvgl.style_t()
	lvgl.style_init(Style_LvglBar1_2)

	--This is the base code of first.LvglBar1
	first.LvglBar1.self = lvgl.bar_create(lvgl.scr_act(), nil)
	lvgl.obj_set_size(first.LvglBar1.self, 641, 22)
	lvgl.bar_set_value(first.LvglBar1.self, undefined, lvgl.ANIM_undefined)
	lvgl.bar_set_range(first.LvglBar1.self, 0, 100)
	lvgl.obj_align(first.LvglBar1.self, nil, lvgl.ALIGN_IN_TOP_LEFT, 44, 162)
	lvgl.obj_add_style(first.LvglBar1.self, lvgl.BAR_PART_BG, Style_LvglBar1_1)
	lvgl.obj_add_style(first.LvglBar1.self, lvgl.BAR_PART_INDIC, Style_LvglBar1_2)
end